package structures;

import java.util.Arrays;

import pack.MyReader;

public class SpecificConditionRecord extends TypeAbstract{

	public static int size = 5;
	public static byte[] emptyValue = {0,0,0,0,0};
	
	public final TimeReal entryTime; //4
	public final SpecificConditionType specificConditionType; //1
	
	public SpecificConditionRecord(MyReader reader)
	{
		if(size != 0 && emptyValue != null){
			empty = Arrays.equals(reader.read(size), emptyValue);
			reader.offset -= size;
		}
		
		entryTime = new TimeReal(reader);
		specificConditionType = new SpecificConditionType(reader);
	}
}
